package com.dss.auto_deploy.event;

import com.dss.auto_deploy.domain.AdmDockerDeploy;
import org.springframework.context.ApplicationEvent;

/**
 * @Description: docker拉取镜像并启动容器
 * @author: dongshoushan
 */
public class DockerPullAndStartEvent extends ApplicationEvent {
    private AdmDockerDeploy admDockerDeploy;
    private String imageName;

    public DockerPullAndStartEvent(AdmDockerDeploy admDockerDeploy, String imageName) {
        super(admDockerDeploy);
        this.admDockerDeploy = admDockerDeploy;
        this.imageName = imageName;
    }
    public AdmDockerDeploy getAdmDockerDeploy() {
        return admDockerDeploy;
    }

    public String getImageName() {
        return imageName;
    }
}
